package com.lzk.策略模式;

/**
 * @author: zhongkui 1365693530@qq.com
 * @Date: 2024/7/15
 */
public abstract class Duck {

    public Duck(){

    }

    public abstract void display(); //显示鸭子信息

    public void swim(){
        System.out.println("鸭子游泳~~~");
    }

    public void quack(){
        System.out.println("鸭子嘎嘎叫~~~");
    }
    public void fly(){
        System.out.println("鸭子飞~~~");
    }

}
